﻿<%@ Page Language="C#" AutoEventWireup="true" ValidateRequest="false" CodeBehind="CategoryDetail.aspx.cs"
    Inherits="Sagacity.NC.Web.BaokaoManager.PSchool.CategoryDetail" %>

<%@ Register Src="~/Form/HostFormCommon.ascx" TagName="HostFormCommon" TagPrefix="uc1" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>学生基础信息</title>
    <link href="../../resources/css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">

    <script language="javascript" type="text/javascript">
    
           /*------------新增按钮事件--------------*/
          function  NewFunction(){
               /*---------设置左边栏是否显示出来----------*/
        self.parent.openOrCollapseWest(true); 
        //调用hostFormCommon的新增按钮
        NewData("");
        }
    /*******删除**********/
        function DelFunction()
        {
            DelData();
        }
        var resouceId = <%=resourceId %>;
        var showStyle = 2
        
        var showRedirection = "addScuccessFuc()";
        function addScuccessFuc(){
                  Ext.MessageBox.confirm('注意', '保存成功。<p>点击【是】跳转到详细页面，点击【否】继续添加。<p>是否跳转到详细页面？', function(btn) {
                   if (btn=="yes") {
                         //schoolId = xmlDoc.selectSingleNode("Root/Fields/Field[@Name='BATCH_ID'][@EnableEdit='True']").getAttribute("Value");
                         var params = "ResourceId="+resouceId+"&CategoryId="+selectedKeyId+"&showStyle="+showStyle;
                         var url = "CategoryBaseInfo.aspx?"+params;
                         
                         self.parent.self.parent.tabCenterPanel.autoLoad.url = url;
                         self.parent.self.parent.tabCenterPanel.reload();
                   }
                   if(btn=="no")
                     {
                       HostFormCommon1_hidExcuteState.setValue(0);
                     }
             }
              
             );
        }
    </script>

    <div>
        <ext:ScriptManager ID="ScriptManager1" CleanResourceUrl="false" runat="server" Theme="Default" />
        <asp:HiddenField ID="hidParenId" runat="server" Value="PARENTID" />
        <asp:HiddenField ID="hidParenIdValue" runat="server" Value="0" />
        <ext:ViewPort ID="temp" runat="server">
            <Body>
                <uc1:HostFormCommon ID="HostFormCommon1" ShowPlan="GroupStyle" runat="server" MenuId="1134" />
            </Body>
        </ext:ViewPort>
    </div>
    </form>
</body>
</html>
